home *** CD-ROM | disk | FTP | other *** search
- Path: cs.vu.nl!sun4nl!xs4all!marketgraph!rvg
- From: rvg@marketgraph.xs4all.nl (Ruud van Gaal)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS-C and Interrupts
- Message-ID: <313anbl60.alamito@marketgraph.xs4all.nl>
- Date: Wed, 7 Feb 96 13:58:49 CET
- References: <4f87o7$p1a@ulke.hiMolde.no>
- Reply-To: rvg@marketgraph.xs4all.nl
- X-Newsreader: Alamito Mail and News Manager (V2.0.4 for Waffle) registered to MARKETGRAPH VISUAL AUTOMATION
-
- In <4f87o7$p1a@ulke.hiMolde.no> espen@hai.hiMolde.no (Espen Berntsen) wrote:
-
- >How do you call a C routine from an interrupt in sas-c??
- >
- >Whenever I try to do it, the machine locks up.
- >
- >the C routine looks like this:
- >
- >----- cut ---
- >LONG Counter = 0;
- >
- >void VBLRoutine(void)
- >{
- > Counter++;
- >}
- >----- cut -----
-
- For SAS C:
- void __interrupt __saveds VBLRoutine(void)
- {...}
-
- __interrupt disable any stack checking (if not disabled at all), __saveds
- gets A4 to point at your local data.
-
- --
- Ruud van Gaal
- MarketGraph Visual Automation
- E-Mail : rvg@marketgraph.xs4all.nl
- DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
- "...Works fascinates me. I could sit and watch it for hours..."
-
-